const db = require('./db/db');
//导入MovieModel
const MovieModel = require('./models/MovieModel');
//调用函数,把实参传递给形参
db(()=>{
    //个性化读取
    MovieModel.create({title:'让子弹飞',director:'姜文'}).then((data)=>{
        console.log('插入成功',data);
    }).catch((res)=>{
        console.log('插入失败',res)
    })
});
